
/**
 * @Author: 陈瑞鹏
 * @Date:   2023-02-01 09:25:15
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-02-01 09:25:38
 */
import gameCtr from "../ctrs/gameCtr";

const { ccclass, property } = cc._decorator;
@ccclass
export default class flyTxt extends cc.Component {

  @property({ type: cc.Label, tooltip: "文本" })
  txt: cc.Label = null;

  drawUi(str, color) {
    this.txt.string = str;
    this.txt.node.color = new cc.Color().fromHEX(color);
  }

  recover() {
    gameCtr.ins.poolObj['flyTxt'].put(this.node);
  }
}